﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Lswweb.Model
{
    /// <summary>
    /// 实体类News 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    public class ProductInfo
    {
        public ProductInfo()
        {
            this.IsWholesale = true;
            this.DateCreated = DateTime.Now;
            this.Status = StatusType.Enabled;
            this.AuditingStatus = AuditingStatusType.Approved;
        }

        public int Id { get; set; }

        public int ProductCategoryId{get;set;}

        public bool IsHot{get;set;}

        public bool IsTop{get;set;}

        public DateTime DateCreated{get;set;}

        public string Title{get;set;}

        public string Keys{get;set;}

        public string Summary{get;set;}

        public string Promulgator { get; set; }

        public string ImageUrl{get;set;}

        public int DisplayOrder{get;set;}

        public string Content{get;set;}

        public StatusType Status{get;set;}

        public AuditingStatusType AuditingStatus{get;set;}

        public string Ver { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price{get;set;}

        public decimal MarketPrice { get; set; }

        public int Sale { get; set; }

        public string ProductCode { get; set; }

        public string Content2 { get; set; }

        public string Content3 { get; set; }

        public string Content4 { get; set; }

        public string Other { get; set; }

        public int Weight { get; set; }

        public bool IsWholesale { get; set; }
        
        /// <summary>
        /// 附件，放图片。
        /// </summary>
        public IList<UpFileInfo> ImageFiles { get; set; }
    }
}
